export const appStorage = {
    set(key, value) {
      uni.setStorageSync(key, value);
    },
    setObj(key, value) {
      const json = JSON.stringify(value);
      uni.setStorageSync(key, json);
    },
    get(key) {
      return uni.getStorageSync(key);
    },
    getObj(key) {
      const json = uni.getStorageSync(key);
      return json ? JSON.parse(json) : {};
    },
    remove(key) {
      uni.removeStorageSync(key);
    },
    removeAll() {
      uni.clearStorageSync();
    }
  };
  